<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <script>
            layui.form.render();
        </script>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">功能名称</span>
            <span class="color-desc margin-left-5">name</span>
            <input class="layui-input" name="name" placeholder="{$vo.name|default='导航名称'}"
                   value="{$vo.name|default=''}"/>
            <span class="help-block">请填写功能名称，建议字符不要太长，一般4个汉字</span>
        </label>
        <div class="layui-form-item relative block">
            <span class="color-green font-w7">图标</span>
            <span class="color-desc margin-left-5">Icon</span>
            <br>
            <input type="hidden" name="icon" value="{$vo.icon|default=''}">
            <script>$('[name=icon]').uploadOneImage()</script>
            <br>
        </div>
        <div class="layui-form-item relative block">
            <span class="color-green font-w7">图片</span>
            <span class="color-desc margin-left-5">Image</span>
            <br>
            <input type="hidden" name="image" value="{$vo.image|default=''}">
            <script>$('[name=image]').uploadOneImage()</script>
            <br>
        </div>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">描述</span>
            <span class="color-desc margin-left-5">Description</span>
            <input class="layui-input" name="description" placeholder="请输描述" required
                   value="{$vo.description|default=''}"/>
            <span class="help-block"><b>必填，</b>请输描述</span>
        </label>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>